<include file="Public:head" />
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="#">首页</a></li>
                    <li> <a href="#">人事管理</a></li>
                    <li class="active">人事档案管理</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="header smaller lighter blue">
                                    <span class='bigtitle'>备份列表</span>
                                    
                                    <div class='cl'></div>
                                </div>

                                <notempty name='lists'>
                                    <div class="table-responsive">

                                        <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                            <thead>
                                                <tr>
                                                    <th width='45px' class="center">序号</th>
                                                    <th width='200px'>文件名</th>
                                                    <th width='150px'>备份时间</th>
                                                    <th width='150px'>文件大小</th>
                                                    <th width='90px'>操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <foreach name="lists" item="row">
                                                 <if condition="$key gt 1">
                                                <tr>
                                                    <td  class="center">{$key-1|getPageKey}</td>
                                                    <td><a href="{:U('Bak/index',array('Action'=>'download','file'=>$row))}">{$row}</a></td>
                                                    <td>{$row|getfiletime=$datadir}</td>
                                                    <td>{$row|getfilesize=$datadir}</td>
                                                    <td>
                                                        <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                                        
                                                             <a href="{:U('Bak/index',array('Action'=>'download','file'=>$row))}"><i class="icon-cloud-download bigger-130"></i></a>
                                <a onclick="return confirm('确定将数据库还原到当前备份吗？')"href="{:U('Bak/index',array('Action'=>'RL','File'=>$row))}"><i class="icon-exchange  bigger-130"></i></a>
                               <a onclick="return confirm('确定删除该备份文件吗？')"href="{:U('Bak/index',array('Action'=>'Del','File'=>$row))}"><i class="icon-trash bigger-130"></i></a>
                                                        </div>
                                                    </td>
                                                </tr>
                                                </if>
                                            </foreach>
                                            </tbody>
                                        </table>

                                    </div>
                                    <else/>
                                    <p class='noempty'>没有符合条件的记录！</p>
                                </notempty>
                                <div id="grid-pager" class="ui-state-default 职级 ui-corner-bottom" dir="ltr" >
                                    <table width='100%' data-table='dictionary'  id='modal_del_table'>
                                        <tr>
                                            <td>
                                                <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                                    <a class="purple" href="{:U('Bak/index',array('Action'=>'backup'))}">
                                                        <i class="icon-plus-sign bigger-130"></i>
                                                    </a>
                                                </div>
                                            </td>
                                            <td class='td_pager'></td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div><!-- /.main-content -->
        <include file="Public:setting" />
    </div>
</div>
<include file="Public:del" />
<include file="Public:foot" />